From bb249590188e34fa1947b54d071e2320c1aa0fb2 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 8 Mar 2004 15:54:25 +0000 Subject: [PATCH] Parse cache container. Lost in rework. --- gpsbabel/gpx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gpsbabel/gpx.c b/gpsbabel/gpx.c index 5b137c4d0..93d1eea8a 100644 --- a/gpsbabel/gpx.c +++ b/gpsbabel/gpx.c @@ -78,6 +78,7 @@ typedef enum { tt_wpt_type, tt_wpt_urlname, tt_cache_container, + tt_cache_type, tt_cache_difficulty, tt_cache_terrain, tt_cache_hint, @@ -144,6 +145,7 @@ tag_mapping tag_path_map[] = { { tt_wpt_sym, 0, "/gpx/wpt/sym" }, { tt_wpt_type, 1, "/gpx/wpt/type" }, { tt_cache_container, 1, "/gpx/wpt/groundspeak:cache/groundspeak:container" }, + { tt_cache_type, 1, "/gpx/wpt/groundspeak:cache/groundspeak:type" }, { tt_cache_difficulty, 1, "/gpx/wpt/groundspeak:cache/groundspeak:difficulty" }, { tt_cache_terrain, 1, "/gpx/wpt/groundspeak:cache/groundspeak:terrain" }, { tt_cache_hint, 1, "/gpx/wpt/groundspeak:cache/groundspeak:encoded_hints" }, @@ -597,6 +599,9 @@ gpx_end(void *data, const char *el) case tt_cache_container: wpt_tmp->gc_data.container = gs_mkcont(cdatastrp); break; + case tt_cache_type: + wpt_tmp->gc_data.type = gs_mktype(cdatastrp); + break; case tt_cache_difficulty: sscanf(cdatastrp, "%f", &x); wpt_tmp->gc_data.diff = x * 10; -- 2.30.2